package com.adou.quartz.task;

public class Task {
    private String id = "0";
    private String name = "";
    /**
     * 1=启动 0=停止
     */
    private int state = 0;
    /**
     * 1=SimpleTrigger 2=CronTrigger定期 3=CronTrigger定周
     */
    private int type = 1;

    /**
     * cronExpression
     */
    private String content = "";

    /**
     * cronExpression 例如：按分钟（推送10分钟执行一次） 0 0/10 * * * ? *  按小时（变更12小时一次）0 0 0/12 * * ? *
     */
    private String cronexpresssion = "";

    /**
     * 动态密匙链接
     */
    private String posturl = "";

    /**
     * 全路径类名
     */
    private String classname = "";

    /**
     * 开始时间
     */
    private String startTime = "";

    /**
     * 结束时间
     */
    private String endTime = "";

    /**
     * 重复次数
     */
    private String repeatCount = "-1";

    /**
     * 间隔时间
     */
    private String repeatInterval = "3600";

    /**
     * @return the classname
     */
    public String getClassname() {
        return classname;
    }

    /**
     * @param classname the classname to set
     */
    public void setClassname(String classname) {
        this.classname = classname;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return the posturl
     */
    public String getPostUrl() {
        return posturl;
    }

    /**
     * @param posturl the posturl to set
     */
    public void setPostUrl(String posturl) {
        this.posturl = posturl;
    }

    /**
     * @return the endTime
     */
    public String getEndTime() {
        return endTime;
    }

    /**
     * @param endTime the endTime to set
     */
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the repeatCount
     */
    public String getRepeatCount() {
        return repeatCount;
    }

    /**
     * @param repeatCount the repeatCount to set
     */
    public void setRepeatCount(String repeatCount) {
        this.repeatCount = repeatCount;
    }

    /**
     * @return the repeatInterval
     */
    public String getRepeatInterval() {
        return repeatInterval;
    }

    /**
     * @param repeatInterval the repeatInterval to set
     */
    public void setRepeatInterval(String repeatInterval) {
        this.repeatInterval = repeatInterval;
    }

    /**
     * @return the startTime
     */
    public String getStartTime() {
        return startTime;
    }

    /**
     * @param startTime the startTime to set
     */
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /**
     * @return
     */
    public String getCronexpresssion() {
        return cronexpresssion;
    }

    /**
     * @param cronexpresssion
     */
    public void setCronexpresssion(String cronexpresssion) {
        this.cronexpresssion = cronexpresssion;
    }

    /**
     * @return the state
     */
    public int getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(int state) {
        this.state = state;
    }

    /**
     * @return the type
     */
    public int getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(int type) {
        this.type = type;
    }
}